﻿<baseClass:Control xmlns:baseClass="clr-namespace:EFS.RC.Survey.Controls" x:Class="EFS.RC.Survey.Controls.Question"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
	x:Name="ControlQuestion"
	MinWidth="500"
	xmlns:Core="clr-namespace:Microsoft.SilverlightMediaFramework.Core;assembly=Microsoft.SilverlightMediaFramework.Core" 
	xmlns:toolkit="http://schemas.microsoft.com/winfx/2006/xaml/presentation/toolkit"
	xmlns:Media="clr-namespace:Microsoft.SilverlightMediaFramework.Core.Media;assembly=Microsoft.SilverlightMediaFramework.Core" Loaded="ControlQuestion_Loaded"  BorderThickness="1" BorderBrush="Black">
	<baseClass:Control.Resources>
		<Style x:Key="horizontalStackPanel" TargetType="StackPanel">
			<Setter Property="Orientation" Value="Horizontal"></Setter>
		</Style>
		<Style x:Key="verticalStackPanel" TargetType="StackPanel">
			<Setter Property="Orientation" Value="Vertical"></Setter>
		</Style>
	</baseClass:Control.Resources>
	<Grid VerticalAlignment="Stretch" HorizontalAlignment="Stretch">
		<Grid.ColumnDefinitions>
			<ColumnDefinition Width="*"></ColumnDefinition>
		</Grid.ColumnDefinitions>
		<Grid.RowDefinitions>
			<RowDefinition Height="*"></RowDefinition>
			<RowDefinition Height="5"></RowDefinition>
			<RowDefinition Height="*"></RowDefinition>
			<RowDefinition Height="10"></RowDefinition>
			<RowDefinition Height="Auto"></RowDefinition>
			<RowDefinition Height="Auto"></RowDefinition>

		</Grid.RowDefinitions>
		<TextBlock Grid.Row="0" Grid.Column="0" Height="Auto" HorizontalAlignment="Left" Margin="0,0,0,0" Name="textBlockQuestion" Text="TextBlock" VerticalAlignment="Center" />
		<StackPanel Grid.Row="2" Grid.Column="0" Orientation="Vertical" x:Name="stackPanelAnswers" Margin="30,0,0,0">
		</StackPanel>
		<!--<TextBox Grid.Row="3" Grid.Column="0" Name="commentText" Margin="110,0,10,0" VerticalScrollBarVisibility="Visible"  MaxHeight="150" HorizontalAlignment="Stretch"  VerticalAlignment="Center" TextWrapping="Wrap" AcceptsReturn="True" />-->
		<TextBox Grid.Row="4" VerticalScrollBarVisibility="Visible" MaxHeight="75" HorizontalAlignment="Stretch" Margin="28,0,7,0" Name="textBoxComment" VerticalAlignment="Stretch" TextWrapping="Wrap" AcceptsReturn="True"    />
		<!-- Validation -->
		<toolkit:DockPanel Grid.Row="5" Grid.Column="0" Grid.ColumnSpan="5" Height="Auto" HorizontalAlignment="Right" VerticalAlignment="Top" Margin="0,0,0,0" Name="dockPanelValidation" Width="Auto">
			<TextBlock Height="Auto" HorizontalAlignment="Left" Margin="0,0,0,0" Name="textBlockValidationError" Text="Error" VerticalAlignment="Center" Foreground="Red" />
		</toolkit:DockPanel>
	</Grid>
</baseClass:Control>